{include file="index/header" /}
<body>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__css/jedate.css">
<script type="text/javascript" src="__PUBLIC__js/jquery.jedate.min.js"></script>
<div class="panel admin-panel">
  <div class="panel-head"><strong class="icon-reorder"> 内容列表</strong></div>
  <form method="post" action="" id="listform">
    <div class="padding border-bottom">
    <ul class="search" style="padding-left:10px;">
          <li>
          <input type="text" placeholder="开始日期" id="test" name="start_time" value="{$param.start_time}" class="input jcDate" style="width:250px; line-height:17px;display:inline-block" /> -
          <input type="text" placeholder="结束日期" id="test" name="end_time" value="{$param.end_time}" class="input jcDate" style="width:250px; line-height:17px;display:inline-block" />
          <input type="search" placeholder="手机号" name="phone" value="{$param.phone}" class="input"  style="width:250px; line-height:17px;display:inline-block;"/>
          <input type="search" placeholder="订单号" name="orderid" value="{$param.orderid}" class="input"  style="width:250px; line-height:17px;display:inline-block;"/>
        </li>
        <a href="javascript:void(0)" class="button border-main" onclick="changesearch()">搜索用户</a>
      </ul>
      
  </div>
  <table class="table table-hover text-center">
    <tr>
      <th width="10%">订单号</th>
      <th width="10%">名称</th>
      <th width="10%">购买人</th>
      <th width="10%">购买的课程</th>
      <th width="10%">购买时间</th>
      <th width="10%">价格</th>
      <th width="15%">交易状态</th>
    </tr>
    {foreach name='data' item='v'}
    <tr>
      <td>{$v.order_id}</td>
      <td>{$v.title}</td>
      <td>{$v.know_phone|disposeInfor=###,$v.know_email}</td>
      <td>{$v.nav_name}</td>
      <td>{$v.update_time}</td>
      <td>￥{$v.money}</td>
      <td>{if $v.status eq 1}已付款{else} <font color="red"> 未付款</font>{/if}</td>
    </tr>
    {/foreach}
    <tr>
        <td colspan="7">{$data->render()}</td>
      </tr>
  </table>
  <input type="hidden" name="status" value="">
  </form>
</div>
<script type="text/javascript">
  $(".jcDate").jeDate({
      format:"YYYY-MM-DD",
      isTime:false, 
      minDate:"2014-09-19 00:00:00"
  });
  function changesearch(){
    $("#listform").submit();    //提交ID为myform的表单
}
</script>
</body></html>